<template>
  <el-card class="show">
    <div slot="header" class="clearfix">
      <span>操作记录</span>
    </div>
    <el-row>
      <el-col :lg="24" :md="24">
        <el-table
          :data="chVersionHistories"
          height="250"
          border
          style="width: 100%">
          <el-table-column
            width="50px"
            align="center"
            type="index"
            label="序号">
          </el-table-column>
          <el-table-column
            align="center"
            prop="operation"
            label="操作">
          </el-table-column>
          <el-table-column
            align="center"
            prop="founderName"
            label="账号">
          </el-table-column>
          <el-table-column
            align="center"
            prop="foundtime"
            label="时间">
            <template slot-scope="scope">
              {{ chVersionHistories[scope.$index]['foundtime'] | unixTimestampFilter}}
            </template>
          </el-table-column>
          <el-table-column
            align="center"
            prop="version"
            label="历史版本">
          </el-table-column>
        </el-table>
      </el-col>
    </el-row>
  </el-card>
</template>

<script>
import {unixTimestampFilter} from '@/filters'
export default {
  props: {
    chVersionHistories: {
      type: Array,
      required: true
    }
  },
  data() {
    return {}
  },
  methods: {
    unixTimestampFilter
  }
}
</script>
